package com.xiaozhengkeji.blogsuper.base.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.xiaozhengkeji.blogsuper.base.mapper.ArticleSTEntityMapper;
import com.xiaozhengkeji.blogsuper.base.entitys.ArticleSTEntity;

@Service
public class ArticleSTEntityService {

    @Resource
    private ArticleSTEntityMapper articleSTEntityMapper;


    public int deleteByPrimaryKey(Integer id) {
        return articleSTEntityMapper.deleteByPrimaryKey(id);
    }


    public int insert(ArticleSTEntity record) {
        return articleSTEntityMapper.insert(record);
    }


    public int insertSelective(ArticleSTEntity record) {
        return articleSTEntityMapper.insertSelective(record);
    }


    public ArticleSTEntity selectByPrimaryKey(Integer id) {
        return articleSTEntityMapper.selectByPrimaryKey(id);
    }


    public int updateByPrimaryKeySelective(ArticleSTEntity record) {
        return articleSTEntityMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(ArticleSTEntity record) {
        return articleSTEntityMapper.updateByPrimaryKey(record);
    }


    public List<ArticleSTEntity> queryByAll(ArticleSTEntity articleSTEntity) {
        return articleSTEntityMapper.queryByAll(articleSTEntity);
    }


    public List<ArticleSTEntity> queryByArticleClassID(Integer articleClassID) {
        return articleSTEntityMapper.queryByArticleClassID(articleClassID);
    }


    public List<ArticleSTEntity> queryByArticleClassIDAndArticleStatus(Integer articleClassID, Integer articleStatus) {
        return articleSTEntityMapper.queryByArticleClassIDAndArticleStatus(articleClassID, articleStatus);
    }

    public List<ArticleSTEntity> queryByArticleTagsName(String articleTagsName) {
        return articleSTEntityMapper.queryByArticleTagsName(articleTagsName);
    }
}


